import configparser

Config = configparser.ConfigParser()
Config.read("D:/project/Python/PythonFunction/Configuration/config.txt")
data = Config.sections()
print(data)
db_host = Config.get("db", "host")
print(db_host)
